// ex5_5.cpp -- total of 12 months volumes.
#include <iostream>
const int MonSize = 12;

int main(void)
{
	using std::cout;
	using std::cin;
	using std::endl;

	char *months[MonSize] = 
	{
		"January", "February", "March", "April", "May",
		"June", "July", "August", "September", "October",
		"November", "December"
	};
    
	int volumes[MonSize] = {0};
    int sum1 = 0;
	int cnt = 0;
	cout << "Enter the 12 months volumes: \n";

	while (cnt < MonSize)
	{
		cout << months[cnt] << " volume is: ";
		cin >> volumes[cnt];
		sum1 += volumes[cnt];
		cnt++;
	}
    
	cout << "\n\nInformationi of 12 months volumes: \n";
	for (int i = 0; i < MonSize; i++)
    {
		cout << months[i] << " volumes is "
			 << volumes[i] << endl;
	}
	cout << "Total of volume of 12 months is " 
		 << sum1 << endl;
}

